package com.example.webdemo.service;

import com.example.webdemo.model.Article;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zp
 * @version 1.0
 * @description: ArticleService
 * @date 2023/7/31 19:06
 */
public interface ArticleService {
    int deleteByPrimaryKey(Integer id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);

    List<Article> selectAll();

    List<Article> selectByType(String type);
}
